package demo2;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;

public class Test2 {

    public static void main(String[] args) {
        ArrayList<Integer> arrayList1= new ArrayList<>();
        List<Integer> arrayList2 = new ArrayList<>();
    }
    public static void main2(String[] args) {
        SeqList seqList = new SeqList();
        /*seqList.add(1);
        seqList.add(2);
        seqList.add(3);
        seqList.add(4);
        seqList.add(5);
        seqList.add(6);*/

        for(int i = 0; i < 10; i++) {
            seqList.add(i,i);
        }
        seqList.disPlay();
    }
    public static void main1(String[] args) {
        //一个接口引用去引用一个对象
        List<Integer> stack = new Stack<>();//栈
        List<Integer> arrayList = new ArrayList<>();//顺序表
        List<Integer> LinkedList = new LinkedList<>();//链表

    }
}
